/*
 * BackupItem.java
 *
 * Created on April 9, 2007, 11:58 PM
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package edu.byu.isys413.samlam;

import java.io.File;
import java.io.InputStream;

/**
 * Backup Item
 * @author Sam
 */
public class BackupItem extends BusinessObject{
    private String name;
    private InputStream fileData;
    private Extension extension;
    private String memberid;
    private long filesize;
    private String uploadDate;
    private String status;
    private boolean deleted;
    
    /**
     * Creates a new instance of BackupItem
     * @param id ID
     */
    public BackupItem(String id) {
        super(id);
    }

    /**
     * Get Name
     * @return Get Name
     */
    public String getName() {
        return name;
    }

    /**
     * Set Name
     * @param name Name
     */
    public void setName(String name) {
        this.name = name;
        this.setDirty(true);
    }

    /**
     * Get File Data
     * @return get File Data
     */
    public InputStream getFileData() {
        return fileData;
    }

    /**
     * Set File Date
     * @param fileData file data
     */
    public void setFileData(InputStream fileData) {
        this.fileData = fileData;
        this.setDirty(true);
    }

    /**
     * Get Extension
     * @return get extension
     */
    public Extension getExtension() {
        return extension;
    }

    /**
     * set Extension
     * @param extension extension
     */
    public void setExtension(Extension extension) {
        this.extension = extension;
        this.setDirty(true);
    }

    /**
     * get Member ID
     * @return get Member ID
     */
    public String getMemberid() {
        return memberid;
    }

    /**
     * set Member ID
     * @param memberid member ID
     */
    public void setMemberid(String memberid) {
        this.memberid = memberid;
        this.setDirty(true);
    }

    /**
     * get File Size
     * @return get file size
     */
    public long getFilesize() {
        return filesize;
    }

    /**
     * set File Size
     * @param filesize file size
     */
    public void setFilesize(long filesize) {
        this.filesize = filesize;
        this.setDirty(true);
    }

    /**
     * get Upload Date
     * @return get upload date
     */
    public String getUploadDate() {
        return uploadDate;
    }

    /**
     * set upload date
     * @param uploadDate upload date
     */
    public void setUploadDate(String uploadDate) {
        this.uploadDate = uploadDate;
        this.setDirty(true);
    }

    /**
     * get Status
     * @return get status
     */
    public String getStatus() {
        return status;
    }

    /**
     * set status
     * @param status status
     */
    public void setStatus(String status) {
        this.status = status;
        this.setDirty(true);
    }

    /**
     * is deleted
     * @return is deleted
     */
    public boolean isDeleted() {
        return deleted;
    }

    /**
     * set deleted
     * @param deleted deleted
     */
    public void setDeleted(boolean deleted) {
        this.deleted = deleted;
        this.setDirty(true);
    }


}
